package com.huan.springcloud.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "letters2")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Letter {

    @Id
    private String id;
    private Integer userid;
    private String nickname;
    private String title;
    private String content;
    private String ctime;
    private String stime;
}
